<script setup lang="ts">
const { safeAreaInsets } = uni.getSystemInfoSync()


</script>

<template>
  <view class="navbar" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
    <!-- logo文字 -->
    <view class="logo">
      <image class="logo-image" src="@/static/logo.png"></image>
      <text class="logo-text">专注宠物生活</text>
    </view>
    <!-- 搜索条 -->
    <navigator :url="'/pagesSearch/search/search'" hover-class="none" class="search">
      <text class="icon-sousuo"></text>
      <text class="icon-search" style="margin-left: 10rpx;">点击搜索商品</text>
    </navigator>
  </view>
</template>


<style lang="scss">
.navbar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f12711; 
  background: -webkit-linear-gradient(to top, #f5af19, #f12711);  
  background: linear-gradient(to top, #f5af19, #f12711); 

  .logo {
    display: flex;
    align-items: center;
    height: 64rpx;
    padding-left: 30rpx;
    .logo-image {
      width: 150rpx;
      height: 57rpx;
    }
    .logo-text {
      flex: 1;
      line-height: 28rpx;
      color: #fff;
      margin: 2rpx 0 0 20rpx;
      padding-left: 20rpx;
      border-left: 1rpx solid #fff;
      font-size: 26rpx;
    }
  }
  
  .search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10rpx 0 26rpx;
    height: 64rpx;
    margin: 22rpx 26rpx;
    color:#666;
    font-size: 28rpx;
    border-radius: 32rpx;
    background-color: white;
  }
}
</style>